package com.rongc.client.freight.business.carrier.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;

import org.json.JSONObject;


/*
*  司机发布车源接口
* */

public class ConveyancePubApi extends AbsRequest<ConveyancePubApi.ConveyancePubParams, JSONObject> {

    public ConveyancePubApi(ConveyancePubParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getPubConveyanceUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class ConveyancePubParams extends BaseParams {
        public ConveyancePubParams(String info) {
            put("truckInfo", info);
        }

        public ConveyancePubParams(String info,String type) {
            put("truckInfo", info);
            put("type", type);
        }
    }


}
